package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "超级群聊申请表")
@Builder
@TableName("tz_melt_cloud_ultra_group_apply")
public class MeltCloudUltraGroupApply {

    @Schema(description = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @NotNull(message = "请选择资费标准！")
    @Schema(description = "资费套餐id")
    private Long costId;

    @Schema(description = "类型 0：用户 1：商户")
    private Integer type;

    @Schema(description = "用户id/商家用户id")
    private String objId;

    @Schema(description = "商户id")
    private Long shopId;

    @NotEmpty(message = "群名称不能为空！")
    @Schema(description = "群名称")
    private String name;

    @Schema(description = "超级群头像")
    private String pic;

    @Schema(description = "是否官方群 默认0否，1是")
    private Integer isOfficial;

    @Schema(description = "状态 0待处理 1驳回 2创建失败 3创建成功")
    private int status;

    @Schema(description = "超级群聊id")
    private Long groupId;

    @Schema(description = "是否取消自动续费 默认0否 1是")
    private Integer cancelRenewal;
    
    private Date createTime;
    private Date updateTime;


}
